﻿<navigation:Page x:Class="Arch.Samples.RiaServices.Views.Todos.TodoSearch" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 
           xmlns:local="clr-namespace:Arch.Samples.RiaServices.Controls" d:DesignWidth="640" d:DesignHeight="480"
           Title="Todo Search">
    <local:BusyIndicator x:Name="busyIndicator" IsBusy="{Binding Context.IsBusy}">
        <tk:DockPanel x:Name="LayoutRoot">
            <Grid tk:DockPanel.Dock="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="2*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" Text="{Binding SearchQuery, Mode=TwoWay}" />
                <Button Grid.Column="1" Style="{StaticResource SearchButton}" Command="{Binding SearchCommand}" />
            </Grid>
            <ContentControl ContentTemplate="{StaticResource ReadOnlyGrid}" Content="{Binding}" />
        </tk:DockPanel>
    </local:BusyIndicator>
</navigation:Page>
